package com.shenyi.cloud.exception;

/**
 * @author shouhan
 * @version 1.0
 * @date 2018/12/28
 * @desc 异常抛出实体类
 * @see
 * @since 1.0
 */
public class ServiceException extends RuntimeException{

    /**
     * 返回码
     */
    private Integer code;
    /**
     * 开发阶段错误信息
     */
    private String message;

    public ServiceException() {

    }

    public ServiceException(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
